package adm.hikingapp;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;

public class MyHelper extends SQLiteOpenHelper{
	
	public MyHelper (Context context){
		super(context, "mi_base_de_datos.db", null, 1);
	}

	@Override
	public void onCreate(SQLiteDatabase arg0){
		Log.d("chachi","Entra a crear la bd");
		arg0.execSQL("CREATE TABLE tabla(id INTEGER PRIMARY KEY," +
				"name varchar(50) NOT NULL," +
				"score integer NOT NULL);");
	}
	
	@Override
	public void onUpgrade(
			SQLiteDatabase db, int oldVersion, int newVersion){
		
	}
}
